#! /usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Mosson"
from django.urls import path,re_path
from . import views

urlpatterns = [
    # 课程分类
    path(r'category/', views.CourseCategoryListAPIView.as_view()),
    path(r'', views.CourseListAPIView.as_view()),
    # 课程详情
    re_path(r"(?P<pk>\d+)/", views.CourseRetrieveAPIView.as_view()),
    path(r"chapter/", views.CourseChapterListAPIView.as_view()),
    path(r"player/", views.PolyvAPIView.as_view()),
]